﻿@model HinduShop.UI.ViewModels.StoreManager.ProductViewModel 

@{
    ViewBag.Title = "Детали";
}

@using (Html.BeginForm())
{
    <fieldset>
        <legend>Продукт</legend>
        @Html.EditorForModel();
    </fieldset>
    
    @Html.ActionLink("Назад", "Index")
}

@using(Html.BeginForm("AddToCart", "Cart")) {
    @Html.HiddenFor(x => x.ProductId)
    @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
    <input type="submit" value="+ Add to cart" />
}
